package com.weiyuwqj.api.model;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Table(name = "bus_income")
public class BusIncome implements Serializable {
    @Id
    private Integer id;

    /**
     * 用户ID
     */
    @Column(name = "user_id")
    private Integer userId;

    /**
     * 收益金额
     */
    @Column(name = "income_amout")
    private BigDecimal incomeAmout;

    /**
     * 收益类型：1-活期收益2-定期收益
     */
    @Column(name = "income_type")
    private Integer incomeType;

    /**
     * 收益日期，格式20150101
     */
    @Column(name = "income_date")
    private String incomeDate;

    private Date addtime;

    /**
     * @return id
     */
    public Integer getId() {
        return id;
    }

    /**
     * @param id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 获取用户ID
     *
     * @return user_id - 用户ID
     */
    public Integer getUserId() {
        return userId;
    }

    /**
     * 设置用户ID
     *
     * @param userId 用户ID
     */
    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    /**
     * 获取收益金额
     *
     * @return income_amout - 收益金额
     */
    public BigDecimal getIncomeAmout() {
        return incomeAmout;
    }

    /**
     * 设置收益金额
     *
     * @param incomeAmout 收益金额
     */
    public void setIncomeAmout(BigDecimal incomeAmout) {
        this.incomeAmout = incomeAmout;
    }

    /**
     * 获取收益类型：1-活期收益2-定期收益
     *
     * @return income_type - 收益类型：1-活期收益2-定期收益
     */
    public Integer getIncomeType() {
        return incomeType;
    }

    /**
     * 设置收益类型：1-活期收益2-定期收益
     *
     * @param incomeType 收益类型：1-活期收益2-定期收益
     */
    public void setIncomeType(Integer incomeType) {
        this.incomeType = incomeType;
    }

    /**
     * 获取收益日期，格式20150101
     *
     * @return income_date - 收益日期，格式20150101
     */
    public String getIncomeDate() {
        return incomeDate;
    }

    /**
     * 设置收益日期，格式20150101
     *
     * @param incomeDate 收益日期，格式20150101
     */
    public void setIncomeDate(String incomeDate) {
        this.incomeDate = incomeDate;
    }

    /**
     * @return addtime
     */
    public Date getAddtime() {
        return addtime;
    }

    /**
     * @param addtime
     */
    public void setAddtime(Date addtime) {
        this.addtime = addtime;
    }
}